<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class StaticPagesController extends Controller
{
    //
    public function index(){
        $feed_items = [];
        if(Auth::user()){
            $feed_items=Auth::user()->feed()->paginate(30);

        }
        return view('static_pages/home',compact('feed_items'));
    }
    //
    public function about(){
        return view('static_pages/about');
    }
    //
    public function help(){
        return view('static_pages/help');
    }
}
